package cn.edu.nuc.zyb.model;

import java.io.File;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class haha {

	public static void main(String[] args) throws Exception {

		

		/*FileOutputStream fos = new FileOutputStream("D:\\store\\user\\zhangyanbo");
		ObjectOutputStream oos = new ObjectOutputStream(fos);
		User user = new User("zhangyanbo", 123456, "zyb", 10);
		oos.writeObject(user);*/
		
		
		File file = new File("D:\\store\\cart\\haha");
		file.mkdirs();
		FileOutputStream fos = new FileOutputStream(file+"\\"+"zyb");
		ObjectOutputStream oos = new ObjectOutputStream(fos);
		Admin admin = new Admin("zhangyanbo", 123456, "zyb");
		oos.writeObject(admin);
			
		

	}
}
